package com.wash.shoes.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wash.shoes.domain.vo.RegionWashShopVo;
import com.wash.shoes.entity.RegionWashShopPo;
import com.wash.shoes.page.PageFactory;
import com.wash.shoes.service.RegionWashShopService;
import com.wash.shoes.mapper.RegionWashShopMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author jianguoli
 * @description 针对表【os_region_wash_shop(区域清洗的门店配置)】的数据库操作Service实现
 * @createDate 2025-04-07 18:30:29
 */
@Service
public class RegionWashShopServiceImpl extends ServiceImpl<RegionWashShopMapper, RegionWashShopPo>
        implements RegionWashShopService {

    @Override
    public Page<RegionWashShopVo> pageList(RegionWashShopPo regionWashShopPo) {
        Page<RegionWashShopVo> page = PageFactory.defaultPage();
        List<RegionWashShopVo> dataList = baseMapper.pageList(page, regionWashShopPo);
        page.setRecords(dataList);
        return page;
    }

    @Override
    public RegionWashShopVo getLastProvince(String provinces) {
        return this.baseMapper.getLastProvince(provinces);
    }


}




